package com.jlf.starter.advice.entity;

import com.jlf.core.annotation.filter.ParameterFilter;
import lombok.Getter;
import lombok.Setter;

import java.lang.annotation.Annotation;

/**
 * 注解过滤模型
 *
 * @author wujr
 * 2021/1/14
 * @version 1.0
 * 变更历史
 * [wujr 2021/1/14 1.0 新增]
 */
@Getter
@Setter
public class ParameterFilterWrapper {
    private Annotation annotation;
    private ParameterFilter filter;
    private Integer order;

    public ParameterFilterWrapper(Annotation annotation, ParameterFilter filter){
        this.annotation = annotation;
        this.filter = filter;
        this.order = this.filter.order();
    }
}
